import request from "@/utils/request";


// 获取所有系统用户列表
export const queryAllPsyKnowledge = (page, pageSize,title) =>
    request.get('/psyknowledge/search', {
        params: {
            page, pageSize,title
        }
    }).then((result)=>result.data);


// 添加
export const addPsyKnowledge = (article) =>
    request.post('/psyknowledge/add', article).then((result)=>result.data);
// 获取所有系统用户列表
export const updatePsyKnowledge = (article) =>
    request.put('/psyknowledge/update', article).then((result)=>result.data);

// 删除
export const deletePsyKnowledge = (ids) =>
    request.put('/psyknowledge/delete', ids).then((result)=>result.data);